import request from '@/utils/request'

// 查询资产使用记录列表
export function listPropertyRecord(query) {
  return request({
    url: '/it/propertyRecord/list',
    method: 'get',
    params: query
  })
}

//根据propertyId查询资产使用记录列表
export function getPropertyRecords(propertyId){
  return request({
    url: '/it/propertyRecord/getPropertyRecords/'+propertyId,
    method:'get'
  })
}

// 查询资产使用记录详细
export function getPropertyRecord(id) {
  return request({
    url: '/it/propertyRecord/' + id,
    method: 'get'
  })
}

// 新增资产使用记录
export function addPropertyRecord(data) {
  return request({
    url: '/it/propertyRecord/save',
    method: 'post',
    data: data
  })
}

// 修改资产使用记录
export function editPropertyRecord(data) {
  return request({
    url: '/it/propertyRecord/update',
    method: 'put',
    data: data
  })
}

// 导出资产使用记录
export function exportPropertyRecord(query) {
  return request({
    url: '/it/propertyRecord/export',
    method: 'get',
    params: query
  })
}
